package com.site.web;

import com.night.common.entity.ResultVo;
import com.night.common.entity.logistical.RepaisrRecord;
import com.site.service.RepaisrRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: RepaisrRecordController
 * @author: LJC
 * @date: 2022/10/24-11:03
 * 报修记录
 */
@RestController
@RequestMapping("/api/lot/rep")
public class RepaisrRecordController {
    @Autowired
    private RepaisrRecordService repaisrRecordService;

    //增加报修
    @RequestMapping("/add")
    public ResultVo<?> add(RepaisrRecord repaisrRecord){
        repaisrRecordService.addRepaisrRecord(repaisrRecord);
        return ResultVo.SUCCESS;
    }
}
